<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>邀请好友-领卡</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="__STATIC_URL__/static/mobile/css/weui.css" />
    <link rel="stylesheet" href="__STATIC_URL__/static/mobile/css/cardshareali.css" />
    <link rel="stylesheet" href="__STATIC_URL__/static/mobile/css/getshare.css" />

</head>

<body>
<div id="invite">
    <div class="container" id="container">
        <div class="invite-box" style="">

            <div class="invite-content" style="">
                <div class="contents">
                    <div class="img-box">

                        <div class="card-content">
                            {empty name="card.pic_url"}
                            <div  alt=""class="card-img card-color"style="background:{$card['color']} url(__STATIC_URL__/static/mobile/images/card_b.png) repeat left top;">
                                {else/}
                                <div  alt=""class="card-img"style="">
                                    <img src="{$card['pic_url']}" class="card-img">
                                    {/empty}
                                    <div class="card-store"style="height: 71px;">
                                        <img src="{:cardgetinfo($info['card_id'],0,0)}" alt=""class="store-logo">
                                        <span class="store-name"style="width:50%;    line-height: 15px;  height: 22px;">{$card.title}</span>
                                        <span class="store-name"style=" line-height: 15px;  height: 22px;">{$card.brand_name}{$card.title}</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="content-text" style="width:100%;">
                            <p class="title">
                                <span class="title-text">会员权益</span>
                            </p>
                            <div class="content-list">
                                {$card['prerogative']}

                            </div>
                            <div class="store-msg">

                                <p class="tell">
                                    <img src="__STATIC_URL__/static/mobile/images/phone-green.png" alt=""class="tell-icon">
                                    <sqan class="tell-text">{$card['base_info']['service_phone']}</sqan>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="button-box">
                    {eq name="$card['activate']" value='1'}
                    <a class="card-btn" href="{$shareus['biz_url']}" data-share="{$info['id']}"  data-id="{$info['card_id']}">立即领卡</a>
                    {else/}
                    <a class="card-btn" href="{:url('cardmarke/addcard',['rule_id'=>$info['rule_user']])}" data-share="{$info['id']}"  data-id="{$info['card_id']}">立即领卡</a>

                    {/eq}
                </div>
            </div>




        </div>
    </div>

</body>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript">
    wx.config({$share.wxjssdk});
    wx.ready(function(){
        wx.hideAllNonBaseMenuItem();

        // config信息验证后会执行ready方法，所有接口调用都必须在config接口获得结果之后，config是一个客户端的异步操作，所以如果需要在页面加载时就调用相关接口，则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口，则可以直接调用，不需要放在ready函数中。
    });
</script>
</html>